package com.eralink.readerfinderlib;

class CacheNode {
    private byte[] buffer;
    private int bufferSize; // used bytes in buffer

    public CacheNode(byte[] buffer) {
        this.buffer = buffer;
        this.bufferSize = 0;
    }

    public byte[] getBuffer() {
        return buffer;
    }

    public void setBuffer(byte[] buffer) {
        this.buffer = buffer;
    }

    public int getBufferSize() {
        return bufferSize;
    }

    public void setBufferSize(int bufferSize) {
        this.bufferSize = bufferSize;
    }
}
